home *** CD-ROM | disk | FTP | other *** search
- on MouseClick lePas
- global gListSuj, gListCod, gSujetO, gSujet1, gMol, gPartie, gNumSpr, gBoutons, g1erSprLoc, gBarChron, gSurvolPrec, gTraduit, gMessDef1, gMessDef2, gMessSty2, gScopeCo0, gScopeCo1, gPosVideo, gPosDebP, gPosDebS0, gPosDebS1, gPosDebE
- curseur(6)
- set monCod2 to gSujet1(Le_Code)
- set maPos2old to getPos(gListCod, monCod2)
- set gPosVideo to gScopeCo0(GetTime) - gPosDebE - gPosDebS0 - gPosDebP
- set maPos2 to 17
- set gSujet1 to getAt(gListSuj, maPos2)
- set gMessDef2 to gSujet1(Le_Nom)
- set gMessSty2 to "bold italic"
- set the textStyle of cast "ZI5" to gMessSty2
- set the text of cast "ZI5" to gMessDef2
- set monCod2 to gSujet1(Le_Code)
- set monCod1 to gSujet0(Le_Code)
- if monCod1 = monCod2 then
- gBoutons(habille, g1erSprLoc + 11, "BTPVID 1")
- else
- gBoutons(habille, g1erSprLoc + 11, "BTPOEI 1")
- end if
- set monEpok to gSujet1(Le_Epoque)
- gBarChron(fleche, 1, monEpok, 1)
- set gPosDebS1 to (getPos(gListCod, gSujet1(Le_Code)) - 1) * 300 * 4
- gScopeCo1(SetTime, gPosDebE + gPosDebS1 + gPosDebP + gPosVideo)
- gBoutons(relache, gNumSpr)
- curseur(-1)
- end
-
- on mouseDown
- global gBoutons, g1erSprLoc, gEtatEtud, gNumSpr
- if the visible of sprite (g1erSprLoc + 12) then
- set gNumSpr to -2
- repeat with i = g1erSprLoc + 12 to g1erSprLoc + 13
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- if gNumSpr > 0 then
- gBoutons(appuie, gNumSpr)
- else
- pass()
- end if
- else
- pass()
- end if
- end
-
- on mouseUp
- global gBoutons, g1erSprLoc, gEtatEtud, gSurvolPrec, gNumSpr
- if the visible of sprite (g1erSprLoc + 12) then
- set monNumSpr to -2
- repeat with i = g1erSprLoc + 12 to g1erSprLoc + 13
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr > 0) and (gNumSpr = monNumSpr) then
- if gNumSpr = (g1erSprLoc + 12) then
- set monPas to -1
- else
- set monPas to 1
- end if
- MouseClick(monPas)
- else
- pass()
- end if
- else
- pass()
- end if
- end
-